<%@ page import="cn.school.service.StudentService" %>
<%@ page import="cn.school.entity.Student" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: ghost
  Date: 2019/12/5
  Time: 19:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>学生信息</title>
  </head>
  <body>
  <table border="1" cellspacing="0" cellpadding="10">
    <tr><td>姓名</td><td>性别</td><td>电话号码</td><td>qq</td><td>微信</td><td>所在班级</td></tr>

<%
  StudentService ss = new StudentService();
  List<Student> list = ss.search(1,20,null,null,null,null);
  for(Student s:list){
%>
    <tr><td><%=s.getSname()%></td><td><%=s.getSex()%></td><td><%=s.getTelephone()%></td>
      <td><%
        if(s.getQq()!=null){
            out.print(s.getQq());
        }else{
            out.print("");
        }
        %>
      </td><td><%=s.getWechat()%></td><td><%=s.getGname()%></td></tr>
<%
  }
%>
  </table>
  </body>
</html>
